package com.zcn.io.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zcn.io.common.entity.OrderMain;
import com.zcn.io.common.vo.OrderMainForTrusteeshipVo;
import com.zcn.io.common.vo.OrderMainPayDetailVo;
import com.zcn.io.web.api.query.OrderMainQuery;
import com.zcn.io.web.api.vo.OrderMainVo;
import com.zcn.io.web.api.vo.PhoneCardVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 202438 邱建伟
 * @date: 2024/9/22 10:40
 */
@Mapper
public interface OrderMapper extends BaseMapper<OrderMain> {

    IPage<OrderMainPayDetailVo> listMain(Page<OrderMain> page, @Param("query") OrderMainQuery orderMain);

    IPage<OrderMainForTrusteeshipVo> listOrderInfoForTrusteeship(Page<OrderMainForTrusteeshipVo> page, @Param("query") OrderMainQuery orderMain);

    void updateNativePlaceHandle(@Param("dto") OrderMain orderMain);


    OrderMainVo getById(String id);

    IPage<OrderMainVo> getInvalidOrderMain(Page<OrderMain> page,@Param("query") OrderMainQuery orderMain);

    IPage<OrderMainVo> getReminderTimeList(Page<OrderMainVo> page,@Param("query") OrderMainQuery orderMain);

    void saveCreditCardInfo(@Param("orderMain") OrderMain orderMain);

    void updateOnlineLendingInfo(@Param("orderMain") OrderMain orderMain);

    void updateReminderMemo(@Param("orderMain") OrderMain orderMain);

    List<OrderMainPayDetailVo> getUseOrderList(@Param("query") OrderMainQuery orderMain);

    void setCancelMemo(@Param("dto") OrderMain orderMain);

    void updateNativePlaceAndOnlineInfoHandle(@Param("dto") OrderMain orderMain);
}
